/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('iframe_dict', {
    zd_ID: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    zd_Name: {
      type: DataTypes.STRING(30),
      allowNull: true
    },
    zd_value: {
      type: DataTypes.STRING(30),
      allowNull: true
    },
    zd_label: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    zd_type: {
      type: DataTypes.INTEGER(6),
      allowNull: true,
      defaultValue: '1'
    },
    zd_sort: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      defaultValue: '0'
    },
    zd_ParentID: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      defaultValue: '0'
    },
    zd_IsParent: {
      type: DataTypes.INTEGER(1),
      allowNull: false,
      defaultValue: '0'
    },
    zd_IsShow: {
      type: DataTypes.INTEGER(1),
      allowNull: false,
      defaultValue: '1'
    },
    zd_Attr: {
      type: DataTypes.STRING(250),
      allowNull: true
    }
  }, {
    tableName: 'iframe_dict'
  });
};
